<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<#include "/admin/include/head.htm">
<script type="text/javascript">
$().ready(function() {
	function build() {
		var buildType = $('#buildType').val();
		var beginDate = $("#beginDate").val();
		var endDate = $("#endDate").val()
		$.ajax({
			url: "buildStatic.jhtml",
			type: "POST",
			data: {articleCategoryId: 8,beginDate: beginDate, endDate: endDate},
			dataType: "json",
			success: function(data) {
				LG.showSuccess("生成静态成功");
			},
			error: function (message) {
				  LG.showError(message);
			}
		});
	}

    $("#generate").click(build);
});
</script>
</head>
<body>

<div id="tabcontainer" style="overflow:hidden;margin:3px;">
	<table class="table">
		<tr>
			<th>生成类型:</th>
			<td>
				新闻
			</td>
		</tr>
        <tr id="beginDateTr" class="">
            <th>开始时间</th>
            <td><input type="text" name="beginDate" id="beginDate" value="${defaultBeginDate?string("yyyy-MM-dd")!''}"
                       class="formText {required: true" onfocus="WdatePicker({maxDate: '#F{$dp.$D(\'endDate\')}'});"/>
            </td>
        </tr>
        <tr id="endDateTr" class="">
            <th>结束时间</th>
            <td><input type="text" name="endDate" id="endDate" value="${defaultEndDate?string("yyyy-MM-dd")!''}"
                       class="formText {required: true" onfocus="WdatePicker({maxDate: '#F{$dp.$D(\'endDate\')}'});"/>
            </td>
        </tr>
        <tr>
            <th>
                &nbsp;
            </th>
            <td>
                <input id="generate" type="button" class="button" value="提交" />
            </td>
        </tr>
	</table>
</div>
</body>
</html>